<?php

namespace Controller\User;

class Message extends Base {

    protected $menuType = 'message';

    public function actionIndex() {
        $pager = new \Lib\Core\Pager();
        $pager->currentPage = $this->getInt('page', 1);
        $message = \Business\User::instance()->getUserHello($this->userId, $pager);
        $this->assign('message', $message);
        $this->assign('pager', $pager);
        $this->display();
    }
}